﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Response
{
    public class ResponseGetAdminHomeStatisticsDto
    {
        /// <summary>
        /// 总销售额
        /// </summary>
        public decimal sumSales { get; set; }
        /// <summary>
        /// 总销售额月同比
        /// </summary>
        public float? sumSalesMom { get; set; }
        /// <summary>
        /// 总订单数包括未完成的
        /// </summary>
        public int sumOrderCount { get; set; }
        /// <summary>
        /// 总订单数包括未完成的月同比
        /// </summary>
        public float? sumOrderCountMom { get; set; }
        /// <summary>
        /// 新增用户数
        /// </summary>
        public int newUserCount { get; set; }
        /// <summary>
        /// 新增用户数月同比
        /// </summary>
        public float? newUserCountMon { get; set; }
        /// <summary>
        /// 转化率
        /// </summary>
        public float? conversionRate { get; set; }
        /// <summary>
        /// 转化率月同比
        /// </summary>
        public float? conversionRateMom { get; set; }
        /// <summary>
        /// 数据图表1
        /// </summary>
        public List<Chart1> chart1Data { get; set; }
        /// <summary>
        /// 数据图表2
        /// </summary>
        public List<Chart2> chart2Data { get; set; }
        /// <summary>
        /// 数据图表3
        /// </summary>
        public List<Chart3> chart3Data { get; set; }
        /// <summary>
        /// 数据图表4
        /// </summary>
        public List<Chart3> chart4Data { get; set; }
    }
    public class Chart1
    {
        public string time { get; set; }
        public decimal sales { get; set; }
    }
    public class Chart2
    {
        public string category { get; set; }
        public decimal sales { get; set; }
    }

    public class Chart3
    {
        public string name { get; set; }
        public decimal value { get; set; }
    }
}
